﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Pages_Equip_Factory_Default" %>

<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar"
    runat="Server">
    设备厂家编号
    <asp:TextBox runat="server" ID="txtCity" Field="Factory_No" Opt="=">
    </asp:TextBox>
    模糊查询
    <asp:TextBox runat="server" ID="txtAll" Field="Factory_Name,Factory_Contrat,Factory_Telphone"
        Opt="%" ToolTip="厂名，联系人，电话">
    </asp:TextBox>
    每页显示
    <asp:TextBox runat="server" ID="txtPageSize" Text="20" Width="50"> </asp:TextBox>
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server">
        <Columns>
            <asp:TemplateField ItemStyle-Width="50">
                <HeaderTemplate>
                    <input id="cbhALL" type="checkbox" onclick="SelectAll('gvInfos', this, 'cbItem');" /><label
                        for="cbhALL"></label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="cbItem" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Factory_No" SortExpression="Factory_No" HeaderText="设备厂家编号"
                ReadOnly="true" />
            <asp:BoundField DataField="Factory_Name" SortExpression="Factory_Name" HeaderText="厂名" />
            <asp:BoundField DataField="Factory_Contrat" SortExpression="Factory_Contrat" HeaderText="联系人" />
            <asp:BoundField DataField="Factory_Telphone" SortExpression="Factory_Telphone" HeaderText="电话" />
            <asp:TemplateField HeaderText="操作密码" SortExpression="Op_Password">
                <ItemTemplate>
                    <%# Decode(DataBinder.Eval(Container.DataItem, "Op_Password").ToString())%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="EMail" SortExpression="EMail" HeaderText="邮箱地址" />
                   <asp:CommandField ShowEditButton="true" EditText="编辑" HeaderText="编辑" ItemStyle-Width="80" />
            <asp:TemplateField HeaderText="删除" ItemStyle-Width="50">
                <ItemTemplate>
                    <asp:LinkButton ID="lbDelete" Text="删除" CausesValidation="true" CommandName="Delete"
                        OnClientClick="return confirm('确定删除吗？');" runat="server">
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="ManageEditURI"
                ItemStyle-Width="50" />
        </Columns>
    </asp:GridView>
</asp:Content>
